<?php


class Ext_Loader
{
	public function __construct()
	{
		
	}
	
	public static function loadClass($className)
	{
		$_key = strtolower($className);
		if(isset($_ENV['class'][$_key]))
		{
			$_class = $_ENV['class'][$_key];
			if(is_object($_class))
			{
				return $_class;
			}
		}
		
		$_class = new $className();
		$_ENV['class'][$_key] = $_class;
		
		return $_class;
	}
}
